package com.hdax.dm.feign.item;

import com.hdax.dm.entity.item.DmItemType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "dm-item-provider")
public interface DmItemTypeFeign {

    /**
     * 查询分类信息
     * @param parent
     * @return
     */
    @PostMapping(path = "/item/itemType/getItemTypes")
    List<DmItemType> getItemTypes(@RequestParam("parent")Long parent);

    /**
     * 查询横向导航
     * @return
     */
    @PostMapping(path = "/item/itemType/lineNav")
    List<DmItemType> lineNav();
}
